import { post } from '@/utils/axios';
const options = {
  headers: {
    'Content-Type': 'application/x-www-form-urlencoded',
  },
};
export default {
  // 获取文档列表
  getDocTableInfo(data) {
    return post('/Windchill/servlet/gwc/platform/doc/getDocTableInfo', data);
  },
  // 设置文档表头
  setWTDocTableColumns(data) {
    return post(`/Windchill/servlet/gwc/platform/doc/setWTDocTableColumns`, data);
  },
  // 保存文档表头
  saveDocTableColumns(data) {
    return post('/Windchill/servlet/gwc/platform/doc/saveDocTableColumns', data);
  },
  // 获取文档详情内容---主内容
  getWTDocPrimaryFile(data) {
    return post('/Windchill/servlet/gwc/platform/doc/content/getWTDocPrimaryFile', data);
  },
  // 获取文档详情内容---附件
  getWTDocSecondaryFiles(data) {
    return post('/Windchill/servlet/gwc/platform/doc/content/getWTDocSecondaryFiles', data);
  },
  // 获取文档详情相关对象---参考文档
  getWTDocReferenceDocs(data) {
    return post('/Windchill/servlet/gwc/platform/doc/refObj/getWTDocReferenceDocs', data);
  },
  // 获取文档详情相关对象---所参考的文档
  getWTDocForReferenceDocs(data) {
    return post('/Windchill/servlet/gwc/platform/doc/refObj/getWTDocForReferenceDocs', data);
  },
  // 获取文档详情相关对象---说明部件
  getWTDocDescribeWTParts(data) {
    return post('/Windchill/servlet/gwc/platform/doc/refObj/getWTDocDescribeWTParts', data);
  },
  // 获取文档详情相关对象---参考方部件
  getWTDocReferenceWTParts(data) {
    return post('/Windchill/servlet/gwc/platform/doc/refObj/getWTDocReferenceWTParts', data);
  },
  // 获取文档详情历史记录
  getWTDocHistoryList(data) {
    return post('/Windchill/servlet/gwc/platform/doc/history/getWTDocHistoryList', data);
  },
  // 新建文档
  createDoc(data) {
    return post('/Windchill/servlet/gwc/platform/doc/createDoc', data);
  },
  // 编辑文档
  editDoc(data) {
    return post('/Windchill/servlet/gwc/platform/doc/editDoc', data);
  },
  // 删除文档
  deleteDoc(data) {
    return post('/Windchill/servlet/gwc/platform/doc/deleteDoc', data);
  },
  // 获取文档大类
  getDocType(data) {
    return post('/Windchill/servlet/gwc/platform/doc/getDocType', data);
  },
};
